package com.foxmail.yusp.mycloud;

/**
 * 继电器类
 */

class Relay {
    private int idx;
    private boolean enable;
    private boolean pulse;
    private int on;
    private int off;
    private String title;
    private int priority;
    private String schedule;

    Relay(int idx, boolean enable, boolean pulse, int on, int off, String title, int priority, String schedule) {
        this.idx = idx;
        this.enable = enable;
        this.pulse = pulse;
        this.on = on;
        this.off = off;
        this.title = title;
        this.priority = priority;
        this.schedule = schedule;
    }

    String getIdx() {
        return Integer.toString(idx);
    }

    boolean getEnable() {
        return enable;
    }

    boolean getPulse() {
        return pulse;
    }

    String getOn() {
        return Integer.toString(on);
    }

    String getOff() {
        return Integer.toString(off);
    }

    String getTitle() {
        return title;
    }

    String getPriority() {
        return Integer.toString(priority);
    }

    String getSchedule() {
        return schedule;
    }

    //
}
